package com.service;

import com.Exception.NormalException.ChatException.MessageTypeException;
import com.Exception.NormalException.ChatException.TargetTypeException;
import com.Exception.NormalException.FileExceptions.FileFormatException;
import com.entity.Message;
import com.entity.User;

import java.io.IOException;
import java.util.List;

public interface ChatService  {

    boolean sendMessageToUser(Message message) throws TargetTypeException;

    boolean sendMessageToGroup(Message message, List<User> userList);

    void checkMessageType(Message message) throws MessageTypeException, FileFormatException, IOException;

}
